package com.mryao.gxkygl.user.view;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.mryao.gxkygl.user.view.UserView.complete;

import io.swagger.annotations.ApiModelProperty;

public class UserNameView {
	
	@ApiModelProperty("用户名")
    @Size(min = 5,max = 10,message = "用户名[5-10]位!")
    @NotBlank(message = "用户名不能为空!")
    private String userName;
	
	
	@ApiModelProperty("id")
    @NotBlank(groups = {complete.class},message = "id不能为空!")
    private String id;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
